import numpy as np
arr = np.array([[1, 2, 3], [4, 5, 6]])
print("原始数组:\n", arr)
# 改变形状
reshaped = arr.reshape(3, 2)
print("重塑后:\n", reshaped)

# Output:原始数组:
#  [[1 2 3]
#  [4 5 6]]
# 重塑后:
#  [[1 2]
#  [3 4]
#  [5 6]]